package com.smart.manager.union.mall.body;

import com.smart.common.entities.core.BaseSearch;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * 帮助
 *
 * @author Leo
 * @date 2023/08/16
 */
public class RUnionMallKind {

    @Data
    @EqualsAndHashCode(callSuper = true)
    @ApiModel("RUnionMallKind1")
    public static class SearchBody extends BaseSearch {


        @ApiModelProperty("类别标题")
        private String code;

        @ApiModelProperty("类别名称")
        private String name;





    }


    @Data
    @ApiModel("RUnionMallKind2")
    public static class EditBody implements Serializable {


        @ApiModelProperty("类别标题")
        @NotBlank(message = "类别标题不能为空")
        @Length( max = 30, message = "类别标题长度不能超过30个字符")
        private String code;

        @ApiModelProperty("类别名称")
        @NotBlank(message = "类别名称不能为空")
        @Length( max = 50, message = "类别名称长度不能超过50个字符")
        private String name;


        @ApiModelProperty("类别描述")
        @Length( max = 255, message = "类别名称长度不能超过255个字符")
        private String description;


        @ApiModelProperty("绑定游戏图标")
        @NotBlank(message = "绑定游戏图标不能为空")
        @Length( max = 50, message = "绑定游戏图标不能超过50个字符")
        private String  icon;

    }


}
